This replication repository contains the following: 

A) 
  - crosstabs_2024-08-15_2024-08-23.RData
  - crosstabs_2024-09-07_2024-09-12.RData 
  - crosstabs_2024-08-15_2024-09-12.RData

These are dated RData files, each containing a list object with the topline, 
crosstabs and state-level estimates derived from our procedure, for each set of 
dates. crosstabs_2024-08-15_2024-09-12.RData contains predictions generated 
from leveraging both polls from august and september, and contains the state-
level predictions published on the issue. 

B) 
  - crosstabs_polls.RData

This is an RData file that contains the crosstabs for other pollsters which we
use to compare our own estimates. 

C) 
  - REPLICATION_PLOTS.R
  
To run the `Repilication Plots' you need to install JAGS on your machine. 
You can do so by downloading it here: 
https://mcmc-jags.sourceforge.io
  
This is an R script that can be run to generate the three plots contained in 
the paper. Specifically, the two sets of plots displayed in Fig. 3 of the paper
are created in the 'generated_plots' folder, and named as follows:
  - vote2024_population_2024-08-15_2024-08-23.pdf
  - vote2024_population_2024-09-07_2024-09-12.pdf
  
The state-level plot used in Fig. 4 is also created in the 'generated_plots' 
folder, and is named:
  - states.comprehensive_2024-08-15_2024-09-12.pdf
  
D)
   - REPLICATION_TABLES.R 
   
This is an R script that can be run to generate latex code to create the 
crosstabs tables seen in the paper. The latex code used in the paper was edited
by hand to make the joint tables more aesthetically pleasing, and join tables 
from different dates. The REPLICATION_TABLES script generates separate latex 
code for each crosstab on each day. These can be found in the 'generated_tables'
folder, and have the following names: 

topline tables (Table 3): 
  - latex.code_date_2024-08-15_2024-08-23.txt
  - latex.code_date_2024-09-07_2024-09-12.txt
  
gender crosstab tables (Table 4):
  - latex.code_gender_2024-08-15_2024-08-23.txt
  - latex.code_gender_2024-09-07_2024-09-12.txt

race/ethnicity crosstab tables (Table 5):
  - latex.code_ethnicity_2024-08-15_2024-08-23.txt
  - latex.code_ethnicity_2024-09-07_2024-09-12.txt


